/**
 * @description User Model 
 */
const mongoose = require('../db/db')
const Schema = mongoose.Schema({
  username: {
    type: String,
    require: true, //必须
    unique: true//唯一，不可重复
  }, password: String
}, { timestamps: true })
const User = mongoose.model('user', Schema)
module.exports = User